from django.urls import path
from . import views

urlpatterns = [
    # 主页
    path('index/', views.index, name='index'), 

    # 作品
    path('search_product/', views.search_product, name='search_product'), # 查询
    path('search_product_get/', views.search_product_get, name='search_product_get'), # 查询get
    path('search_product_post/', views.search_product_post, name='search_product_post'), # 查询post
    path('add_product/', views.add_product, name='add_product'),
    path('add_product_get/', views.add_product_get, name='add_product_get'),
    path('add_product_post/', views.add_product_post, name='add_product_post'),
    path('update_product/', views.update_product, name='update_product'),
    path('update_product_get/', views.update_product_get, name='update_product_get'),
    path('update_product_post/', views.update_product_post, name='update_product_post'),
    # 动画
    path('search/', views.search, name='search'), 
    path('add/', views.add, name='add'), 
    path('update/', views.update, name='update'), 
    # 电影
    path('search_movie/', views.search_movie, name='search_movie'),
    path('add_movie/', views.add_movie, name='add_movie'), 
    path('update_movie/', views.update_movie, name='update_movie'), 
    # 电视剧
    path('search_teleplay/', views.search_teleplay, name='search_teleplay'), 
    path('add_teleplay/', views.add_teleplay, name='add_teleplay'), 
    path('update_teleplay/', views.update_teleplay, name='update_teleplay'),
    # 小说
    path('search_novel/', views.search_novel, name='search_novel'), 
    path('add_novel/', views.add_novel, name='add_novel'), 
    path('update_novel/', views.update_novel, name='update_novel'),
    # 观看记录
    path('search_watch/', views.search_watch, name='search_watch'), # 查询
    path('search_watch_get/', views.search_watch_get, name='search_watch_get'), # 查询get
    path('search_watch_post/', views.search_watch_post, name='search_watch_post'), # 查询post
    path('add_watch/', views.add_watch, name='add_watch'),
    path('update_watch/', views.update_watch, name='update_watch'),
]
